<template>
  <span class="wk-tag" :style="{ color: color, fontSize: size }">
    <slot></slot>
  </span>
</template>

<script>
export default {
  props: {
    color: {
      type: String,
      default: '#03A9F4'
    },
    size: {
      type: String,
      default: '8px'
    }
  }
}
</script>

<style scoped>
  .wk-tag {
    display: inline-block;
    padding: 2px 5px;
    line-height: normal;
    border-radius: 3px;
    font-size: 10px;
    background: #fff;
    position: relative;
  }

  .wk-tag::after {
    border-color: currentColor;
    border-radius: 4px;
    border-width: 1px;
    border-style: solid;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    transform: scale(.5);
    transform-origin: 0 0;
    pointer-events: none;
    box-sizing: border-box;
  }
</style>

